package ru.reaperoq.taskmanager.repositories

import org.springframework.data.repository.CrudRepository
import ru.reaperoq.taskmanager.models.Task
import ru.reaperoq.taskmanager.models.User

interface UserRepository : CrudRepository<User, Long> {
    fun findUserByUsername(username: String): User?

    fun findUserById(id: Long): User?

    fun existsByUsername(username: String): Boolean
}